* configure.ac: Detect renameat2 with gl_CHECK_FUNCS_ANDROID.
authorPo Lu <luangruo@yahoo.com>
Sat, 24 Feb 2024 03:09:05 +0000 (11:09 +0800)
committerPo Lu <luangruo@yahoo.com>
Sat, 24 Feb 2024 03:09:38 +0000 (11:09 +0800)
configure.ac

index 71a899f5f40a96f9117674982b9427b0fd5ce7ad..452aa0838f1bffcc76a036135d8f64283187d4c9 100644 (file)
@@ -5907,13 +5907,15 @@ pthread_sigmask strsignal setitimer \
 sendto recvfrom getsockname getifaddrs freeifaddrs \
 gai_strerror sync \
 endpwent getgrent endgrent \
-renameat2 \
 cfmakeraw cfsetspeed __executable_start log2 pthread_setname_np \
 pthread_set_name_np])
 
 # getpwent is not present in older versions of Android.  (bug#65319)
 gl_CHECK_FUNCS_ANDROID([getpwent], [[#include <pwd.h>]])
 
+# renameat2 is not present in older versions of Android.
+gl_CHECK_FUNCS_ANDROID([renameat2], [[#include <stdio.h>]])
+
 if test "$ac_cv_func_cfmakeraw" != "yes"; then
   # On some systems (Android), cfmakeraw is inline, so AC_CHECK_FUNCS
   # cannot find it.  Check if some code including termios.h and using